/*
 * @Author: xiaoyan
 * @Date: 2022-01-20 17:05:16
 * @LastEditors: xiaoyan
 * @LastEditTime: 2022-02-22 11:15:47
 * @Description: 机构部分接口
 * @FilePath: \user_auth_front\src\interface\index.ts
 */

//接口返回
export interface IRes<T = any>{
    code:number;
    msg:string;
    data:T;
}
//分页
interface IPagination{
    currPage:number;
    pageSize:number;
    totalCount:number;
    totalPage:number;
}
interface ICommon{
    name:string;
    createTime:string;
    updateTime:string;
    createBy:string;
    upateBy:string;
}
//分页入参
export interface IPageParmas{
    page?:number;
    limit?:number;
    keyWord?:string;
}
//菜单列表分页入参
export interface IPageMenuParmas extends IPageParmas{
    organizationId?:number;
}
//机构
export interface IOrganization extends ICommon{
    organizationId:number;
}
export interface IOrganizationListPage extends IPagination{
    list:Array<IOrganization>;
}
//用户
export interface IUser extends ICommon{
    userId:number;
    password:string;
    sex:number;
    chineseName:string;
    card:string;
    phone:string;
    email:string;
    nickName:string;
    avatar:string;
    organizationId:number;
    roleId:number;
    duties:string;
    description:string;
    remark1:string;
    remark2:string;
}
export interface IUserListPage extends IPagination{
    list:Array<IUser>;
}
//角色
export interface IRole extends ICommon{
    roleId:number;
    organizationId:number;
    authority:string;
    remark:string;
}
export interface IRoleListPage extends IPagination{
    list:Array<IRole>;
}
//菜单
export interface IMenu extends ICommon{
    menuId:number;
    organizationId:number;
    organizationName?:string;
    applicationId:number;
    type:number;
    parentId:number;
    url:string;
    code:string;
}
export interface IMenuListPage extends IPagination{
    list:Array<IMenu>;
}
//应用
export interface IApplication extends ICommon{
    applicationId:number;
    organizationId:number;
    url:string;
    code:string;
    remark:string;
}
export interface IApplicationListPage extends IPagination{
    list:Array<IApplication>;
}